package com.lzw.mapper.student;

import com.lzw.pojo.RCR;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SRoomM {

    @Insert("INSERT INTO dormitorymanagement.roomchangerequest(student, requested_dormitory_id, request_date) VALUES (#{student}, #{requestedDormitoryId}, #{requestDate})")
    void add(RCR rcr);

    List<RCR> get(String student);
}
